﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewRequest.aspx.cs" Inherits="PersonLoanRemibur.NewRequest" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo_TY.ascx" TagName="UserInfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory_TY.ascx" TagName="ApprovalHistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments_TY.ascx" TagName="Attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList_TY.ascx" TagName="ButtonList"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>个人借款申请</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            //            $("#txt_FPJEDX").text($("#fld_FPJEDX").val()); 
            //            if ($("#fld_BDZJLB").attr("checked")) { 
            //                $("#fld_SQJE").val($("#fld_JKJE").val());
            //                document.getElementById("DivMoney").style.display = "";
            //                document.getElementById("DivContract").style.display = "none";
            //            } else {
            //                $("#fld_SQJE").val($("#fld_FPJE").val());
            //                document.getElementById("DivMoney").style.display = "none";
            //                document.getElementById("DivContract").style.display = "";
            //            }
        });
        function changeRMB(obj) {
            var JE = $(obj).val();
            $("#fld_ApplyAmount").val(JE);
            //            var STRRMB = ChangeRMB(JE); 
            //            $("#fld_FPJEDX").val(STRRMB);
            //            $("#txt_FPJEDX").text(STRRMB);
        }
        function check(ID) {
            jQuery('#form1').validationEngine('hide');
            if ($("#fld_BDZJLB").attr("checked")) {
                document.getElementById("DivMoney").style.display = "";
                document.getElementById("DivContract").style.display = "none";
            } else {
                document.getElementById("DivMoney").style.display = "none";
                document.getElementById("DivContract").style.display = "";
            }
        }
    </script>
    <script type="text/javascript" language="javascript">
        window.onload = function () {
            document.getElementById("fld_YHKH").onkeyup = function () {
                this.value = this.value.replace(/\s/g, '').replace(/(\d{4})(?=\d)/g, "$1 "); ;
            };
        }; </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:TextBox ID="fld_ApplyAmount" runat="server" Style="display: none"></asp:TextBox>
    <div class="container">
        <div class="row">
            <ui:userinfo id="UserInfo1" processtitle="个人借款申请" processprefix="CIE" tablename="PROC_PERSONLOANREMIBUR"
                runat="server"></ui:userinfo>
        </div>
        <%-- 
        <div class="row">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner">
                        表单类别
                    </td>
                    <td class="td-content" colspan="3">
                         
                        <span onclick="check('rdoMoney')">
                            <input type="radio" ID="fld_BDZJLB"  checked="checked"   runat="server" name="BDLB" class="validate[required]" /> <span>资金支付类</span> 

                          <%--  <asp:RadioButton ID="fld_BDZJLB"  Checked="true"   runat="server"  GroupName="BDLB"
                                Text="资金支付类" /> 
                                </span> 
                                
                                <%--<span onclick="check('rdoRemiber')">
                                <asp:RadioButton ID="RadioButton1" class="validate[required]"   runat="server" GroupName="BDLB" Text="发票报销类" />
                                <input id="fld_BDFPLB" type="radio" runat="server" name="BDLB" class="validate[required]" /> <span>发票报销类</span> 
                                </span> 
                                    
                    </td>
                </tr>
            </table>
        </div>--%>
        <div class="row" id="DivMoney">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        资金支付
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        项目名称：
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_XMMC" runat="server"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        共需天数：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_GXTS" runat="server" money="int" class="validate[required],custom[number]"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        借款金额：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_JKJE" runat="server" money="money" class="validate[required]"
                            onblur="changeRMB(this);" onkeyup="changeRMB(this);"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        备注：
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_BZ" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        借款事由：<span class="red">*</span>
                    </td>
                    <td class="td-content" colspan="3">
                        <asp:TextBox ID="fld_JKSY" runat="server" class="validate[required]"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        开户行：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_KHH" runat="server" class="validate[required]"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        银行卡号：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_YHKH" runat="server" class="validate[required]"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row" id="DivContract" style="display: none;">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        合同发票
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        所属公司：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_SSGS" runat="server" class="validate[required]"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        发票金额：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_FPJE" runat="server" class="validate[required]" onblur="changeRMB(this);"
                            onkeyup="changeRMB(this);"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        发票金额大写：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:Label ID="txt_FPJEDX" runat="server"></asp:Label>
                        <asp:TextBox ID="fld_FPJEDX" runat="server" Style="display: none"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        发票信息：
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_FPXX" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        发票号：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_FPH" runat="server" class="validate[required]"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        备注：
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="fld_BZ2" runat="server"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <attach:attachments id="Attachments1" runat="server"></attach:attachments>
        </div>
        <div class="row">
            <ah:approvalhistory id="ApprovalHistory1" showaction="false" runat="server"></ah:approvalhistory>
        </div>
        <div class="row">
        </div>
    </div>
    <btn:buttonlist id="ButtonList1" runat="server"></btn:buttonlist>
    <div style="display: none;">
    </div>
    </form>
</body>
</html>
